<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试b站的flv.js</title>
</head>
<body>
    <video id="videoElement"
    controls
    autoplay
    muted autoplay="true" width="800"></video>
</body>
<script src="../js/flv.js"></script>
<script>
    if (flvjs.isSupported()) {
        var videoElement = document.getElementById('videoElement');
        var flvPlayer = flvjs.createPlayer({
            type: 'flv',
            url: 'http://119.29.239.77/flv?port=9093&app=live&stream=test'
        });
        flvPlayer.attachMediaElement(videoElement);
        flvPlayer.load();
        flvPlayer.play();
        console.log('started');
    }
</script>
</html>